<?php
namespace app\index\controller;
use think\Request;
use think\Db;

class Article extends Common
{
	public $req;
	function __construct() {
		parent::__construct();
		$this->req = Request::instance();

        // 判断当前控制器, 使相应导航高亮
		$con = __CLASS__;
        $arr = explode('\\', $con);
        $this->assign('_class', strtolower($arr[3]));

        $nav = 'article';
        $this->assign('nav', $nav);
	}

	// 预览详情页
	public function getArticleDetail($id)
	{
		$article_info = model('admin/Articles')->getArticleDetail($id);
		return view('index/xiangqing',['article_info'=>$article_info]);
	}



}
